<?php
// 二维数组:
$cars = array
(
    array("Volvo",100,96),
    array("BMW",60,59),
    array("Toyota",110,100)
);
?>
<?php
$sites=array
(
"runoob"=>array
(
"菜鸟教程",
"http://www.runoob.com"
),
"google"=>array
(
"Google 搜索",
"http://www.google.com"
),
"taobao"=>array
(
"淘宝",
"http://www.taobao.com"
)
);
print("<pre>");// 格式化输出数组
print_r($sites);
print("</pre>");

echo $sites['runoob'][0] . '地址为：' . $sites['runoob'][1];
echo "<br>";
print("<pre>");// 格式化输出数组
print_r($sites['runoob']);
print("</pre>");
?>